package com.probox.common.entity.vo.proboxService.view;

import cn.hutool.core.util.ObjectUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.utils.money.MoneyUtils;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 预约使用的vo
 */
@Data
public class SubscribeCardVo implements java.io.Serializable {

    private Long cardId;

    private String cardName;

    private Long orderId;

    /**
     * 使用次数
     */
    private String usesTimes;

    private Long cardSettlementPrice;

    public String getCardSettlementPriceStr() {
        if (ObjectUtil.isEmpty(cardSettlementPrice)) {
            return "";
        }
        return MoneyUtils.changeF2Y(cardSettlementPrice);
    }

    private String cardMainImage;

    private List<SubscribeItemVo> itemVoList;

    private Long recordId;

    private Long limitUseTimes;

    private Long surplusUserTimes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    private String isDdl;

    private String isUnLimit;

    private String serviceItemType;
}
